import { Module } from '@nestjs/common';
import { GameService } from './game.service';
import { GameController } from './game.controller';
import { GameInfo } from './entities/game.entity';
import { TypeOrmModule } from '@nestjs/typeorm';
import { WebsocketsServer } from 'src/common/websocket.server';
// import { MatchService } from '../match/match.service';
import { GameListener } from './game.listener';
import { GameInfoV2 } from './entities/game.entity.v2';
import { MatchModule } from '../match/match.module';

@Module({
  imports: [TypeOrmModule.forFeature([GameInfo, GameInfoV2]), MatchModule],
  controllers: [GameController],
  providers: [GameService, WebsocketsServer, GameListener],
  exports: [GameService],
})
export class GameModule {}
